home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / sar.z / sar
Encoding:
Text File  |  2001-04-17  |  4.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. SSSSAAAARRRR((((1111MMMM))))                                                                SSSSAAAARRRR((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sar: sa1, sa2, sadc - system activity report package
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////lllliiiibbbb////ssssaaaa////ssssaaaaddddcccc [t n] [ofile]
  13.  
  14.      ////uuuussssrrrr////lllliiiibbbb////ssssaaaa////ssssaaaa1111 [t n]
  15.  
  16.      ////uuuussssrrrr////lllliiiibbbb////ssssaaaa////ssssaaaa2222 [----uuuubbbbddddDDDDyyyyccccwwwwaaaaqqqqvvvvmmmmpppprrrrttttgggghhhhIIIIAAAA] [----ssss time] [----eeee time] [----iiii sec]
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      System activity data can be accessed at the special request of a user
  20.      (see _s_a_r(1)) and automatically on a routine basis as described here.  The
  21.      operating system contains a number of counters that are incremented as
  22.      various system actions occur.  These include counters for CPU
  23.      utilization, buffer usage, disk I/O activity, TTY device activity,
  24.      switching and system-call activity, file-access, queue activity, inter-
  25.      process communications, paging and graphics.
  26.  
  27.      _s_a_d_c and shell procedures, _s_a_1 and _s_a_2, are used to sample, save, and
  28.      process this data.
  29.  
  30.      _s_a_d_c, the data collector, samples system data _n times every _t seconds and
  31.      writes in binary format to _o_f_i_l_e or to standard output.  If _t and _n are
  32.      omitted, a special record is written.  This facility is used at system
  33.      boot time, when booting to a multiuser state, to mark the time at which
  34.      the counters restart from zero.  For example, the ////eeeettttcccc////iiiinnnniiiitttt....dddd////ppppeeeerrrrffff file
  35.      writes the restart mark to the daily data by the command entry:
  36.  
  37.           su sys -c "/usr/lib/sa/sadc /var/adm/sa/sa`date +%d`"
  38.  
  39.  
  40.      The shell script _s_a_1, a variant of _s_a_d_c, is used to collect and store
  41.      data in binary file ////vvvvaaaarrrr////aaaaddddmmmm////ssssaaaa////ssssaaaa_d_d where _d_d is the current day.  The
  42.      arguments _t and _n cause records to be written _n times at an interval of _t
  43.      seconds, or once if omitted.  The entries in ////uuuussssrrrr////ssssppppoooooooollll////ccccrrrroooonnnn////ccccrrrroooonnnnttttaaaabbbbssss////ssssyyyyssss
  44.      (see _c_r_o_n(1M)):
  45.  
  46.           0 * * * 0-6 /usr/lib/sa/sa1
  47.           20,40 8-17 * * 1-5 /usr/lib/sa/sa1
  48.  
  49.      will produce records every 20 minutes during working hours and hourly
  50.      otherwise.
  51.  
  52.      The shell script _s_a_2, a variant of _s_a_r(1), writes a daily report in file
  53.      ////vvvvaaaarrrr////aaaaddddmmmm////ssssaaaa////ssssaaaarrrr_d_d.  The options are explained in _s_a_r(1).  The
  54.      ////uuuussssrrrr////ssssppppoooooooollll////ccccrrrroooonnnn////ccccrrrroooonnnnttttaaaabbbbssss////ssssyyyyssss entry:
  55.  
  56.           5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSAAAARRRR((((1111MMMM))))                                                                SSSSAAAARRRR((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      will report important activities hourly during the working day.
  75.  
  76. FFFFIIIILLLLEEEESSSS
  77.      /var/adm/sa/sa_d_d     daily data file
  78.      /var/adm/sa/sar_d_d    daily report file
  79.      /tmp/sa....adrfl   address file
  80.  
  81. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  82.      sar(1), timex(1), cron(1M)
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.